package com.suzj.extraenchantments.enchant.Ench_02;

import com.suzj.extraenchantments.Config;

import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;


public class EnchantmentChaos extends Enchantment {
    public EnchantmentChaos() {
        super(Enchantment.Rarity.VERY_RARE, EnchantmentCategory.ARMOR_HEAD,new EquipmentSlot[]{EquipmentSlot.HEAD});
    }

    public int getMaxLevel() {
        if (Config.SERVER.isChaos.get().booleanValue()) {
            return 1;
        }
        return 0;
    }

    public int getMinCost(int p_77321_1_) {
        return 40;
    }

    public int getMaxCost(int p_223551_1_) {
        return 50;
    }
}